from django.urls import path
from apps.users.views import UsernameountView,RegisterView,UsermobilesView,LoginView,LogoutView

urlpatterns=[
    #判断用户名是否重复
    path('usernames/<username>/count/',UsernameountView.as_view()),#加入正则验证
    path('mobiles/<mobile>/count/',UsermobilesView.as_view()),
    path('register/',RegisterView.as_view()),
    path('login/',LoginView.as_view()),
    path('logout/',LogoutView.as_view()),
]